package com.supermap.data.modal;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 公告附件信息
 * TUser entity. @sun'f
 */
@Entity
@Table(name = "T_NOTICE_UPLOAD")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class TNoticeUpload {

    /**
     * 主键
     */
    private String id;
    /**
     * 附件地址（服务器）
     */
    private String address;
    /**
     * 附件名称
     */
    private String name;


    public TNoticeUpload() {
    }

    public TNoticeUpload(String id, String address, String name) {
        this.id = id;
        this.address = address;
        this.name = name;
    }

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "ADDRESS")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
